翻訳と辞書
Words near each other
・ XMetaL
・ XMF
・ XMG
・ XMG Studio
・ XMI
・ XMII
・ XMind
・ Xming
・ XMission
・ XMK
・ XMK (operating system)
・ XML
・ XML and MIME
・ XML appliance
・ XML Base
XML Catalog
・ XML Certification Program
・ XML Configuration Access Protocol
・ XML data binding
・ XML Data Package
・ XML database
・ XML denial-of-service attack
・ XML editor
・ XML Enabled Directory
・ XML Encoding Rules
・ XML Encryption
・ XML Events
・ XML external entity attack
・ XML firewall
・ XML for Analysis


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

XML Catalog : ウィキペディア英語版
XML Catalog

XML documents typically refer to external entities, for example the public and/or system ID for the Document Type Definition. These external relationships are expressed using URIs, typically as URLs.
However, if they are absolute URLs, they only work when your network can reach them. Relying on remote resources makes XML processing susceptible to both planned and unplanned network downtime.
Conversely, if they are relative URLs, they're only useful in the context where they were initially created. For example, the URL "../../xml/dtd/docbookx.xml" will usually only be useful in very limited circumstances.
One way to avoid these problems is to use an entity resolver (a standard part of SAX) or a URI Resolver (a standard part of JAXP). A resolver can examine the URIs of the resources being requested and determine how best to satisfy those requests. The XML catalog is a document describing a mapping between external entity references and locally-cached equivalents.
==Example Catalog.xml==
The following simple catalog shows how one might provide locally-cached DTDs for an XHTML page validation tool, for example.


PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
prefer="public">
uri="dtd/xhtml1/xhtml1-strict.dtd"/>
uri="dtd/xhtml1/xhtml1-transitional.dtd"/>
uri="dtd/xhtml11/xhtml11-flat.dtd"/>


This catalog makes it possible to resolve -//W3C//DTD XHTML 1.0 Strict//EN to the local URI dtd/xhtml1/xhtml1-strict.dtd. Similarly, it provides local URIs for two other public IDs.
Note that the document above includes a DOCTYPE - this may cause the parser to attempt to access the system ID URL for the DOCTYPE (i.e. http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd) before the catalog resolver is fully functioning, which is probably undesirable. To prevent this, simply remove the DOCTYPE declaration.
The following example shows this, and also shows the equivalent <system/> declarations as an alternative to <public/> declarations.



uri="dtd/xhtml1/xhtml1-strict.dtd"/>
uri="dtd/xhtml1/xhtml1-transitional.dtd"/>
uri="dtd/xhtml11/xhtml11-flat.dtd"/>



抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「XML Catalog」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.